PHP $ _ SERVER [DOCUMENT_ROOT] problem $ _ SERVER ['document _ root'] value is empty, but there is actual data on the phpinfo () test page, where is the problem with my program? Or configuration problems?
/*
Test Procedure
Call
The variables included in PHP $ _ SERVER are global variables, which can be called Super global variables. Below I will give you a detailed explanation of common PHP $ _ SERVER usage, hoping to help you.
Frequently used $ _ SERVER [] Variables
$ _
Php obtains the php server variable in the current url path.
Programming in php to obtain the current url address and server variables mainly uses the following global variables: $ _ server ["query_string"], $ _ server ["request_uri"], $ _
Here the CentOS 5.5 under Nginx 1.2.3 and PHP 5.2.17, the other version of the installation method is similar.
First, create Nginx and PHP-specific users and user groups
The code is as follows
Copy Code
Configure the ISAPI mode of PHP under Windows Server 2003 IIS6 by adding a new Web service extension in IIS's Web service extensions, with the program suffix PHP,ISAPI program as Php5isapi.dll. And then my Computer.-> Properties-> Advanced->
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
The first step: the relevant software preparation (the following software is all until July 7, 2006)
PHP: Recommended Zip decompression version of Php-4.4.0-win32
4.4.0 version Download: http://cn.php.net/get/php-4.4.0-Win32.zip/from/a/mirror
5.1.2
Php Chu Getting Started
This chapter highlights
Decide whether to outsource or build your own
Find the right ISP
Avoid common host traps
Install PHP
Choose PHP Development Tools
In this chapter, we will discuss the pros and cons of
Summary of php application path variables. Local server, domain name d.com, root path D: phpnowvhostsd.com. yii, with the requeir_onceaa.php file in the x. php code in the root directory, and aa. php requeir_onceabb.php
Local server, domain
Setup and configuration of php + SQL Server Apache + php + mysql in windows
Setup and configuration of php + SQL Server Apache + php + mysql in windows
Php is fast and secure because of its high execution speed (compared with asp, it cannot be
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.